﻿using Microsoft.AspNetCore.Builder;
using MyWeb.ServiceBus.Gateway.Middleware;
using System.Diagnostics;

namespace MyWeb.ServiceBus.Gateway
{
    public static class GatewyMiddlewareExtensions
    {
        public static async Task<IApplicationBuilder> UseOcelot(this IApplicationBuilder builder)
        {
            builder.UseMiddleware<HttpContextMiddleware>();
            return builder;
        }
    }
}
